import http from './http'
const createUser = (params)=> {
    return http.post('/api/user/create', params)
}
const findUser = (id)=> {
    return http.post('/api/user/findOne', {id})
}
const findList = (params)=> {
    return http.post('/api/user/findAll',params)
}
const setRealName = (params)=> {
    return http.post('/api/user/realName',params)
}
const changePassword = (params)=> {
    return http.post('/api/user/editPassword',params)
}
const changeImage = (params)=> {
    return http.post('/api/user/updateImage',params)
}
const updateUser = (params)=> {
    return http.post('/api/user/update',params)
}
export { createUser, findUser, findList, setRealName, changePassword, changeImage, updateUser }